package cn.kxm.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.kxm.dao.OfferBillDetailMapper;
import cn.kxm.pojo.OfferBillDetail;
import cn.kxm.service.OfferBillDetailService;
@Service
public class OfferBillDetailServiceImpl implements OfferBillDetailService {

	
	@Autowired
	private OfferBillDetailMapper obdm;
	
	@Override
	public List<OfferBillDetail> findAll() {
		return obdm.findAll();
	}

	@Override
	public List<OfferBillDetail> findByBillCode(String billCode) {
		return obdm.findByBillCode(billCode);
	}

	@Override
	public List<Map<String, String>> findDetailByBillCode(String billCode) {
		return obdm.findDetailByBillCode(billCode);
	}

	@Override
	public int insertOfferBillDetail(OfferBillDetail offerBillDetail) {
		return obdm.insertOfferBillDetail(offerBillDetail);
	}

	@Override
	public int deleteByBillCode(String billCode) {
		return obdm.deleteByBillCode(billCode);
	}

}
